global $wpSave, $wpPreview;
global $wpMinoredit, $wpEdittime, $wpTextbox2, $wpSection;
global $oldid, $redirect, $section;
- global $wgLang;
+ global $wgLang, $wgEnableEditToolbar;
if(isset($wpSection)) { $section=$wpSection; } else { $wpSection=$section; }
$wpSummary = wfEscapeHTML( $wpSummary );
- if($wgUser->getOption("showtoolbar")) {
+ if($wgUser->getOption("showtoolbar") && $wgEnableEditToolbar) {
// prepare toolbar for edit buttons
$toolbar=$sk->getEditToolbar();
}
"nocache" => "Disable page caching"
);
+if (!$wgEnableEditToolbar) {
+ unset($wgUserTogglesEn['showtoolbar']);
+}
+
/* private */ $wgBookstoreListEn = array(
"AddALL" => "http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN",
"PriceSCAN" => "http://www.pricescan.com/books/bookDetail.asp?isbn=$1",